//
// Created by kqbi on 2020/2/26.
//

#ifndef VIICS_HTTPSERVICE_H
#define VIICS_HTTPSERVICE_H

#include <functional>
#include "http/model.h"
#include "S_HttpReq_Msg.h"
#include "Utils/Util.h"
#include <memory>

class Store;

class HttpService {
public:
    using ResultHandle = std::function<void (std::string connectionId, VIICS_status status, std::string result)> ;

    HttpService(std::weak_ptr<Store> store);

    ~HttpService();

    void VehicleServiceSearch(std::string connectionId, VehicleService_Search &vSearch, ResultHandle resultHandle);

    std::weak_ptr<Store> _store;
};


#endif //VIICS_HTTPSERVICE_H
